home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
pcboard
/
thtmnu12.zip
/
MENUCFG.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-04-18
|
3KB
|
205 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
String STRING015
String STRING016
;------------------------------------------------------------------------------
STRING006 = ReadLine(PCBDat(), 232)
FOpen 1, STRING006, 0, 0
FSeek 1, 0, 0
FRead 1, STRING001, 14
FSeek 1, 15, 0
FRead 1, STRING005, 1
FSeek 1, 16, 0
FRead 1, STRING002, 39
INTEGER001 = 64
FCreate 3, PPEPath() + "menu.dat", 1, 0
FCreate 2, PPEPath() + "menu.cfg", 1, 0
STRING007 = ReadLine(PPEPath() + PPEName() + ".cnf", 1)
FPutLn 3, STRING007 + STRING001
FPutLn 2, "@X08Ma@X07ke @X0Fyour Selection Plea@X07se @X08or @X0F(@X0BENTER@X0F) =@X0C Quit>"
FPutLn 2, "@X0E"
FPutLn 2, "@X0F"
FPutLn 2, "N"
FPut 2, "!" + STRING002
FPut 2, " "
FPutLn 2, Asc(STRING005)
For INTEGER002 = 1 To 1000000
FSeek 1, INTEGER001, 0
FRead 1, STRING003, 14
If (Ferr(1)) Break
INTEGER001 = INTEGER001 + 15
FSeek 1, INTEGER001, 0
FRead 1, STRING005, 1
INTEGER001 = INTEGER001 + 1
FSeek 1, INTEGER001, 0
FRead 1, STRING004, 39
FPutLn 3, STRING007 + STRING003
If ((Mid(STRING004, 1, 1) == "\") || (Mid(STRING004, 3, 1) == "\")) Then
FPut 2, "!" + STRING004
Else
FPut 2, STRING004
Endif
FPut 2, " "
FPutLn 2, Asc(STRING005)
INTEGER001 = INTEGER001 + 48
Next
FClose 2
FClose 3
FClose 1
STRING006 = ReadLine(PCBDat(), 31) + ".@@@"
FOpen 1, STRING006, 0, 0
FSeek 1, 0, 0
FSeek 1, 298, 0
FRead 1, STRING016, 39
FClose 1
FOpen 1, STRING016, 0, 0
FAppend 2, PPEPath() + "menu.cfg", 1, 0
FAppend 3, PPEPath() + "menu.dat", 1, 0
:LABEL001
If (Ferr(1)) Goto LABEL003
FGet 1, STRING001
If (STRING001 == "") Goto LABEL002
STRING001 = Replace(STRING001, ",", " ")
Tokenize STRING001
If (TokCount() == 8) Then
GetToken STRING008
GetToken STRING009
GetToken STRING010
GetToken STRING011
GetToken STRING012
GetToken STRING013
GetToken STRING014
GetToken STRING015
If (STRING014 == -1) Goto LABEL002
FPutLn 3, STRING007 + STRING008
Copy STRING013 + STRING008, PPEPath() + STRING008 + ".bat"
FPut 2, STRING008 + " "
If (STRING011 == -1) FPut 2, "Y" + " "
FPutLn 2, STRING010 + " " + STRING009
Endif
If (TokCount() == 7) Then
GetToken STRING008
GetToken STRING010
GetToken STRING011
GetToken STRING012
GetToken STRING013
GetToken STRING014
GetToken STRING015
If (STRING014 == -1) Goto LABEL002
FPutLn 3, STRING007 + STRING008
Copy STRING013 + STRING008, PPEPath() + STRING008 + ".bat"
FPut 2, STRING008 + " "
If (STRING011 == -1) FPut 2, "Y" + " "
FPutLn 2, STRING010
Endif
:LABEL002
Goto LABEL001
:LABEL003
FClose 1
FClose 2
FClose 3
Append PPEPath() + "MENU1.CFG", PPEPath() + "MENU.CFG"
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 12 Goto
; 10 Let
; 11 If
; 2 FCreate
; 3 FOpen
; 2 FAppend
; 7 FClose
; 1 FGet
; 9 FPut
; 12 FPutLn
; 1 Tokenize
; 15 GetToken
; 8 FSeek
; 7 FRead
; 1 Append
; 2 Copy
;
;
; ■ Functions used :
;
; 4 -
; 31 +
; 9 ==
; 1 <
; 1 <=
; 2 >=
; 5 !
; 2 &&
; 2 ||
; 2 Mid()
; 2 Ferr()
; 2 Asc()
; 1 Replace()
; 2 PCBDat()
; 9 PPEPath()
; 3 ReadLine()
; 1 PPEName()
; 2 TokCount()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 0 While/EndWhile
; 3 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------